package com.example.teesystem.mapper;

import com.example.teesystem.entity.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author 28131
* @description 针对表【t_course】的数据库操作Mapper
* @createDate 2022-03-23 12:41:48
* @Entity com.example.teesystem.entity.Course
*/
@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    @Update("update t_course set data_img = #{dataImg} where id = #{courseId}")
    void updateDataImgById(Integer courseId, String dataImg);
    @Select("select * from t_course where is_delete = 0")
    List<Course> getCourse();
}




